customFunction

fun customFunction(payload: BsonDocument): Credentials
fun customFunction(payload: Map<String, *>): Credentials

Creates credentials representing a login using an App Services Function. The payload would be serialized and parsed as an argument to the remote function. The payload keys must match the format and names the function expects.

Return

a set of credentials that can be used to log into an App Services Application using App.login.

Parameters

payload

The payload that will be passed as an argument to the server function.